from django.conf.urls import url
from . import views

urlpatterns = [
    #/users/usernames/(?P<username>\w{5,20})/count/
    url(r'^usernames/(?P<username>\w{5,20})/count/$',views.RegisterUsernameCountAPIView.as_view(),name='usernamecount'),

    # /users/phones/(?P<mobile>1[234678]\d{9})/count/
    url(r'^phones/(?P<mobile>1[34578]\d{9})/count/$', views.RegisterPhoneCountAPIView.as_view(), name='phonecount'),


]